Skip to content

Add note about using Invoke-Command for remoting#12735

Merged
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w550555-svc-remote-cmd
Feb 4, 2026
Merged

Add note about using Invoke-Command for remoting#12735
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w550555-svc-remote-cmd

Conversation

@sdwheeler
Copy link
Copy Markdown
Collaborator

@sdwheeler sdwheeler commented Feb 4, 2026

PR Summary

Add note about using Invoke-Command for remoting

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings February 4, 2026 18:24
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 112f020:

⚠️ Validation status: warnings

File Status Preview URL Details
reference/docs-conceptual/whats-new/differences-from-windows-powershell.md ⚠️Warning View (>=powershell-5.1) Details
reference/7.4/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Start-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Stop-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Suspend-Service.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Start-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Stop-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Suspend-Service.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.6)

This comment lists only the first 25 files in the pull request.

reference/docs-conceptual/whats-new/differences-from-windows-powershell.md

  • Line 575, Column 1: [Warning: invalid-note-section] Text in the first line of Note/Section/Video is not valid. Will be rendered to <blockquote>

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates PowerShell documentation to clarify remoting guidance (notably the removal of -ComputerName on *-Service cmdlets) and refreshes editorial formatting and version notes.

Changes:

  • Add notes across *-Service cmdlet docs recommending Invoke-Command for running commands remotely.
  • Update the “Differences from Windows PowerShell” page with revised remoting language and other editorial tweaks.
  • Improve formatting/links in examples (code fences, xref links, line wrapping) across multiple reference pages.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
reference/docs-conceptual/whats-new/differences-from-windows-powershell.md Adds/edits remoting guidance and other editorial updates
reference/7.6/Microsoft.PowerShell.Management/Suspend-Service.md Formats examples and adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/Stop-Service.md Adds Invoke-Command remoting note/link and code-fence formatting
reference/7.6/Microsoft.PowerShell.Management/Start-Service.md Adds Invoke-Command remoting note/link and formatting tweaks
reference/7.6/Microsoft.PowerShell.Management/Set-Service.md Adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/Resume-Service.md Adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/Restart-Service.md Adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/Remove-Service.md Adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/New-Service.md Adds Invoke-Command remoting note/link
reference/7.6/Microsoft.PowerShell.Management/Get-Service.md Adds Invoke-Command remoting note/link, formatting, and xref links
reference/7.5/Microsoft.PowerShell.Management/Suspend-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Stop-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Start-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Set-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Resume-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Restart-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Remove-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/New-Service.md Adds Invoke-Command remoting note/link
reference/7.5/Microsoft.PowerShell.Management/Get-Service.md Adds Invoke-Command remoting note/link and formatting tweaks
reference/7.4/Microsoft.PowerShell.Management/Suspend-Service.md Formats examples and adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/Stop-Service.md Adds Invoke-Command remoting note/link and code-fence formatting
reference/7.4/Microsoft.PowerShell.Management/Start-Service.md Adds Invoke-Command remoting note/link and formatting tweaks
reference/7.4/Microsoft.PowerShell.Management/Set-Service.md Adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/Resume-Service.md Adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/Restart-Service.md Adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/Remove-Service.md Adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/New-Service.md Adds Invoke-Command remoting note/link
reference/7.4/Microsoft.PowerShell.Management/Get-Service.md Adds Invoke-Command remoting note/link, formatting, and xref links

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread reference/docs-conceptual/whats-new/differences-from-windows-powershell.md Outdated
Comment thread reference/docs-conceptual/whats-new/differences-from-windows-powershell.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Management/Get-Service.md Outdated
Comment thread reference/7.5/Microsoft.PowerShell.Management/Get-Service.md Outdated
Comment thread reference/7.4/Microsoft.PowerShell.Management/Get-Service.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Management/Start-Service.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Management/Suspend-Service.md Outdated
Comment thread reference/docs-conceptual/whats-new/differences-from-windows-powershell.md Outdated
Copy link
Copy Markdown
Contributor

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved except for a question about the formatting for alerts and whether the line break after > [!NOTE] is required or conventional.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Mikey Lombardi (He/Him) <[email protected]>
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 1827b05:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Start-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Stop-Service.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Management/Suspend-Service.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Start-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Stop-Service.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Management/Suspend-Service.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Get-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/New-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Remove-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Restart-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Resume-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Set-Service.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Management/Start-Service.md ✅Succeeded View (powershell-7.6)

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit ed225b5 into MicrosoftDocs:main Feb 4, 2026
5 checks passed
@sdwheeler sdwheeler deleted the sdw-w550555-svc-remote-cmd branch February 10, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants